package com.tjetc.domain.po;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders {
    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    private Long id;

    /**
     * 订单编号
     */
    private Long orderNo;

    /**
     * 订单金额
     */
    private Long total;

    /**
     * 票数量
     */
    private Integer num;

    /**
     * 支付编号
     */
    private String payNo;

    /**
     * 订单状态
     */
    private Integer status;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 支付时间
     */
    @JsonFormat(pattern = " yyyy-MM-dd  HH:mm:ss")
    private LocalDateTime payTime;

    /**
     * 取消时间
     */
    @JsonFormat(pattern = " yyyy-MM-dd  HH:mm:ss")
    private LocalDateTime cancelTime;

    /**
     * 完成时间
     */
    @JsonFormat(pattern = " yyyy-MM-dd  HH:mm:ss")
    private LocalDateTime finallyTime;

    /*创建时间*/
    @JsonFormat(pattern = " yyyy-MM-dd  HH:mm:ss")
    private LocalDateTime createTime;

    /*退款时间*/
    @JsonFormat(pattern = " yyyy-MM-dd  HH:mm:ss")
    private LocalDateTime backTime;

    /*别删，调支付宝订单好像必须要有这个*/
    private String goodsName;

}
